package com.zx.back.service;import com.zx.back.mapper.FlightMapper;import com.zx.back.model.Flight;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;import org.springframework.transaction.annotation.Transactional;import java.util.List;@Service@Transactionalpublic class FlightServiceImpl implements IflightService {    @Autowired    private FlightMapper flightMapper;    //查找航班    @Override    public List<Flight> findByAddrTime(String fBegin, String fEnd, String sTime) {        return flightMapper.findBET(fBegin,fEnd,sTime);    }    @Override    public void updateseats(String fid, Integer seatsum) {        flightMapper.updateSeat(fid, seatsum);    }    @Override    public Flight selectById(String fid) {        return flightMapper.selectByPrimaryKey(fid);    }}